package book.service.impl;

import book.dao.chushouDao;
import book.entity.chushou;
import book.service.ChuShouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChuShouServiceImpl implements ChuShouService{

    @Autowired
    chushouDao chu;

    @Override
    public List<chushou> getAll(int offset, int limit, chushou condition) {
        return chu.getByPage(offset,limit,condition);
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public void insert(chushou dz) {
        chu.insertEntity(dz);
    }

    @Override
    public void update(chushou dz) {

    }

    @Override
    public void delete(String id) {
        chu.delete(id);
    }

    @Override
    public chushou getById(String id) {
        return chu.getById(id);
    }

    @Override
    public void todel(List list) {
        chu.bat(list);
    }


}
